#pragma once
#include "GlobalHeader.h"

// ColorSelArea

class ColorSelArea : public CStatic
{
	DECLARE_DYNAMIC(ColorSelArea)

public:
	ColorSelArea(Color theColor, int theType);
	virtual ~ColorSelArea();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnPaint();

public:
	void SelectColor(Color theColor);
	Color getCurrentColor();
	void ApplyColorToNodes();
	void ApplyColorToLines();

private: 
	//currently chose color
	Color mCurColor;
	int mType;

public:
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
};


